Get Channels
AutomatR.MicrosoftTeams.Activities.GetChannels
The "Get Channels" activity in AutomatR for Microsoft Teams retrieves a collection of channels associated with a specified Microsoft Teams team. This activity is beneficial for efficiently managing and accessing channels within Teams, streamlining collaboration and automation workflows.
NOTE: Guest users can't see private or shared channels that they aren't members of in the response.
Properties
Name | Description |
---|---|
Input | |
Team ID | Specifies the Team ID for which channels are to be retrieved. String variables containing the Team ID. |
Misc | |
Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Channels" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs a Microsoft.Graph.ITeamChannelsCollectionPage object, representing a collection page for accessing team channels in Microsoft Teams. This collection page includes information about the channels associated with the specified team, such as channel names, IDs, and other relevant details. |
How to use:
- Drag and drop the "Get Channels" activity onto the workflow.
- Configure the properties by specifying the Team ID for which you want to retrieve channels.
- Optionally, configure the delay.
- Execute the workflow to retrieve a collection of channels associated with the specified Microsoft Teams team.
Example: Consider an example where the "Get Channels" activity is used to retrieve channels for a Teams team with the Team ID "team123":
Get Channels:
Team ID: "team123"
Delay: 1
Result: teamChannels
In this example, the activity retrieves a collection of channels associated with the Teams team with the Team ID "team123". The resulting teamChannels
object contains information about the channels, enabling further processing within the workflow.